package com.blb.edusearchservice.client;

import com.blb.pojo.Course;
import com.blb.pojo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("edu-course-service")
@RequestMapping("course")
public interface CourseIndexClient {
    @GetMapping("all")
    public ResponseResult<List<Course>> getAll();
    @GetMapping("{id}")
    public ResponseResult getById(@PathVariable Long id);
}
